<template>
  <div class="layout">
    <div class="background"></div>
    <a-layout>
      <a-layout-header class="header"> <NavBar /></a-layout-header>
      <a-layout-content class="content">
        <ChatRoomView />
      </a-layout-content>
      <a-layout-footer class="footer">
        <h3 style="color: white">KSCN的畅销IM聊天室</h3>
        <p style="font-size: 15px">
          <a href="/login">加入我吧！😊</a>
        </p>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script lang="ts" setup>
import NavBar from "@/views/NavBar.vue";
import ChatRoomView from "@/views/ChatRoomView.vue";
import FriendRequestNotification from "@/components/FriendRequestNotification.vue";
</script>
<style scoped>
.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 800px;
  position: relative;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("@/assets/images/chatbg.png") center/cover no-repeat;
  z-index: -1;
}

.header {
  background: transparent;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.content {
  flex: 1;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.3);
}

.footer {
  background: rgba(4, 1, 5, 0.7);
  backdrop-filter: blur(10px);
  text-align: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
</style>
